start = 0
x, y, z = map(int, input().split())

if (x < y < 0 and z < y) or (0 < y < x and y < z):
    print('No')
else:
    print('Yes')